﻿/*Author：Lary Pan(itolmqj123@gmail.com)
 *Date  ：2016/7/15
 *Tips  ：Loading
 * */
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class UILoading : UIBase
{
    private Image image_bg;
    private Text label_load;
    private Scrollbar progressBar_load;

    protected override void InitUI()
    {
        base.InitData();

        image_bg     = transform.Find("Obj/Background").GetComponent<Image>();
        label_load      = transform.Find("Obj/Lodingbar/ValueText").GetComponent<Text>();
        progressBar_load = transform.Find("Obj/Lodingbar").GetComponent<Scrollbar>();
    }

    protected override void InitData()
    {
        base.InitData();
    }


    public void SetPercent(float p)
    {
        progressBar_load.value = p;
    }
	
}
